import {createRouter, createWebHashHistory,createWebHistory} from 'vue-router'
// import HomeView from '@/views/HomeView.vue'
// import SearchView from '@/views/SearchView.vue'
// import NotFound from '@/views/NotFound.vue'
const routes = [
  {path: '/home',component:()=>import("@/views/HomeView.vue"),name:'aaa'},
  {path: '/search/:word', component:()=>import("@/views/SearchView.vue")},
  {path:'/',redirect:'/home'},
  { path: '/:pathMatch(.*)*', name: 'NotFound', component:()=>import("@/views/NotFound.vue") },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router